<template>
  <div class="artcle-item">
    <van-cell title="单元格">
      <div slot="label" class="custom-label">
        <div class="cover-images" v-if="article.cover.type ===3">
          <van-image v-for="(item,index) in article.cover.images " :key="index" fit="cover" width="100" height="100"
            :src="item" />
        </div>
        <span>{{article.aut_name}}</span>
        <span class="common">{{article.comm_count}}</span>
        <span>{{article.pubdate | formatDate }}</span>
      </div>
      <van-image v-if="article.cover.type ===1" width="232" height="146" :src="article.cover.images[0]" fit="cover" />
    </van-cell>
  </div>
</template>

<script>
export default {
  name: 'artlistItem',
  props: {
    article: {
      type: Object,
      required: true
    }
  },
  data () {
    return {}
  },
  methods: {},
  computed: {},
  watch: {},
  filters: {},
  components: {},
  created () { },
  mounted () { }
}
</script>

<style scoped lang='less'>
.artcle-item {
  .van-cell__titlle,
  .van-cell__value {
    flex: unset;
  }

  .custom-label {
    .cover-images {
      margin: 30px 0;
      display: flex;
      .van-image {
        width: 232px;
        height: 146px;
      }
      .van-image:nth-child(2) {
        margin: 0 3px;
      }
    }
    font-size: 23px;
    color: #999;
    .common {
      display: inline-block;
      margin: 24px 10px;
    }
  }
}
</style>
